#!/bin/sh

SUPERFISH="../js/superfish-1.4.8"
SUPERFISHCSS="${SUPERFISH}/css/superfish.css"
SUPERFISHNAVBARCSS="${SUPERFISH}/css/superfish-navbar.css"

##  Superfish source Menu colors
##  #13a    - menu font color
##  #BDD2FF - menu color
##  #CFDEFF - hover color
##  #AABDE6 - sub-menu color
##  #D1DFFF - ? color
##  #E6EEFF - ? color
##  #9AAEDB - sub-sub-menu color
##  #fff    - border left color

##  Generate the "red" derivitive

sed -e 's/#13a/#FFFFFF/g' \
    -e 's/#BDD2FF/#800001/g' \
    -e 's/#CFDEFF/#F66802/g' \
    -e 's/#AABDE6/#F99802/g' \
    -e 's/#D1DFFF/#00FFFF/g' \
    -e 's/#E6EEFF/#FF00FF/g' \
    -e 's/#9AAEDB/#F99802/g' \
    -e 's/#fff/#F66802/g' \
    ${SUPERFISHCSS} > `basename ${SUPERFISHCSS} .css`-red.css

##  Superfish source Menu colors
##  #13a    - menu font color
##  #BDD2FF - menu color
##  #CFDEFF - hover color
##  #AABDE6 - sub-menu color
##  #D1DFFF - ? color
##  #E6EEFF - ? color
##  #9AAEDB - sub-sub-menu color
##  #fff    - border left color

##  Generate the "green" derivitive

sed -e 's/#13a/#FFFFFF/g' \
    -e 's/#BDD2FF/#008001/g' \
    -e 's/#CFDEFF/#88CC00/g' \
    -e 's/#AABDE6/#558000/g' \
    -e 's/#D1DFFF/#00FFFF/g' \
    -e 's/#E6EEFF/#FF00FF/g' \
    -e 's/#9AAEDB/#558000/g' \
    -e 's/#fff/#00F001/g' \
    ${SUPERFISHCSS} > `basename ${SUPERFISHCSS} .css`-green.css


##  Superfish source Menu colors
##  #13a    - menu font color
##  #BDD2FF - menu color
##  #CFDEFF - hover color
##  #AABDE6 - sub-menu color
##  #D1DFFF - ? color
##  #E6EEFF - ? color
##  #9AAEDB - sub-sub-menu color
##  #fff    - border left color

##  Generate the "blue" derivitive

sed -e 's/#13a/#FFFFFF/g' \
    -e 's/#BDD2FF/#000081/g' \
    -e 's/#CFDEFF/#FFF218/g' \
    -e 's/#AABDE6/#3E83A9/g' \
    -e 's/#D1DFFF/#00FFFF/g' \
    -e 's/#E6EEFF/#FF00FF/g' \
    -e 's/#9AAEDB/#3E83A9/g' \
    -e 's/#fff/#0000F1/g' \
    ${SUPERFISHCSS} > `basename ${SUPERFISHCSS} .css`-blue.css




